package util
{
	import com.firemoss.magicbus.messaging.fillter.BeforeFilter;
	import com.firemoss.magicbus.messaging.fillter.FaultFilter;
	import com.firemoss.magicbus.messaging.fillter.ResponseFilter;
	import com.firemoss.magicbus.messaging.fillter.ResultFilter;
	
	import mx.rpc.AbstractOperation;
	import mx.rpc.events.FaultEvent;
	import mx.rpc.events.ResultEvent;

	public class MockFilter implements BeforeFilter, ResponseFilter, ResultFilter, FaultFilter
	{
		public var key : String
		
		public function MockFilter()
		{
		}

		public function before(parameters:Array):Array
		{
			SimpleLog.log.push( key )
			
			return parameters;
		}
		
		public function response( result : * ) : *
		{
			SimpleLog.log.push( key )
			
			return "FILTERED RESULT"
		}
		
		public function result(event:ResultEvent):void
		{
			SimpleLog.log.push( key )
		}
		
		public function fault(event:FaultEvent):void
		{
			SimpleLog.log.push( key )
		}
		
	}
}